import Mock  from 'mockjs';

export default {
  // 使用 mockjs 等三方库
  'GET /api/getleftmenu': Mock.mock({
    data: 
      [
        {
            "id": 20,
            "name": "我的任务",
            "p_id": 0,
            "relation_ids": [],
            "child": [
                {
                    "id": 25,
                    "name": "日常任务",
                    "p_id": 20,
                    "relation_ids": [],
                    "child": [
                        {
                            "id": 714,
                            "name": "添加 -&gt; 指派任务",
                            "p_id": 25,
                            "relation_ids": []
                        },
                        {
                            "id": 717,
                            "name": "删除 -&gt; 指派任务",
                            "p_id": 25,
                            "relation_ids": []
                        },
                        {
                            "id": 492,
                            "name": "查看 -&gt; 我的任务",
                            "p_id": 25,
                            "relation_ids": []
                        },
                        {
                            "id": 493,
                            "name": "查看 -&gt; 附件",
                            "p_id": 25,
                            "relation_ids": []
                        },
                        {
                            "id": 494,
                            "name": "完成 -&gt; 任务",
                            "p_id": 25,
                            "relation_ids": []
                        }
                    ]
                },
                {
                    "id": 26,
                    "name": "审核任务",
                    "p_id": 20,
                    "relation_ids": [],
                    "child": [
                        {
                            "id": 512,
                            "name": "查看 -&gt; 审核任务",
                            "p_id": 26,
                            "relation_ids": []
                        },
                        {
                            "id": 514,
                            "name": "查看 -&gt; 审核详情",
                            "p_id": 26,
                            "relation_ids": []
                        },
                        {
                            "id": 516,
                            "name": "审核 -&gt; 任务",
                            "p_id": 26,
                            "relation_ids": []
                        },
                        {
                            "id": 518,
                            "name": "批量审核 -&gt; 任务",
                            "p_id": 26,
                            "relation_ids": []
                        }
                    ]
                },
                {
                    "id": 27,
                    "name": "历史任务",
                    "p_id": 20,
                    "relation_ids": [],
                    "child": [
                        {
                            "id": 521,
                            "name": "查看 -&gt; 历史任务",
                            "p_id": 27,
                            "relation_ids": []
                        }
                    ]
                },
                {
                    "id": 1829,
                    "name": "个人中心",
                    "p_id": 20,
                    "relation_ids": []
                },
                {
                    "id": 1830,
                    "name": "个人设置",
                    "p_id": 20,
                    "relation_ids": []
                },
                {
                    "id": 1691,
                    "name": "我的考勤",
                    "p_id": 20,
                    "relation_ids": [],
                    "child": [
                        {
                            "id": 1692,
                            "name": "查看 -&gt; 我的考勤信息",
                            "p_id": 1691,
                            "relation_ids": []
                        }
                    ]
                }
            ]
        },
        {
            "id": 176,
            "name": "产品中心",
            "p_id": 0,
            "relation_ids": []
        },
        {
            "id": 2227,
            "name": "KPI",
            "p_id": 0,
            "relation_ids": [],
            "child": [
                {
                    "id": 2230,
                    "name": "我的KPI",
                    "p_id": 2227,
                    "relation_ids": [],
                    "child": [
                        {
                            "id": 2252,
                            "name": "查看 -&gt; 我的待完成KPI列表",
                            "p_id": 2230,
                            "relation_ids": []
                        },
                        {
                            "id": 2253,
                            "name": "完成\/更新 -&gt; 我的KPI",
                            "p_id": 2230,
                            "relation_ids": []
                        },
                        {
                            "id": 2254,
                            "name": "查看 -&gt; 我的KPI结果列表",
                            "p_id": 2230,
                            "relation_ids": []
                        },
                        {
                            "id": 2255,
                            "name": "查看 -&gt; 我的KPI结果明细",
                            "p_id": 2230,
                            "relation_ids": []
                        }
                    ]
                }
            ]
        },
        {
            "id": 21,
            "name": "培训学院",
            "p_id": 0,
            "relation_ids": [],
            "child": [
                {
                    "id": 77,
                    "name": "学院首页",
                    "p_id": 21,
                    "relation_ids": [],
                    "child": [
                        {
                            "id": 702,
                            "name": "查看 -&gt; 总结",
                            "p_id": 77,
                            "relation_ids": []
                        },
                        {
                            "id": 703,
                            "name": "添加 -&gt; 培训",
                            "p_id": 77,
                            "relation_ids": []
                        },
                        {
                            "id": 704,
                            "name": "报名 -&gt; 培训",
                            "p_id": 77,
                            "relation_ids": []
                        },
                        {
                            "id": 705,
                            "name": "总结 -&gt; 培训",
                            "p_id": 77,
                            "relation_ids": []
                        },
                        {
                            "id": 706,
                            "name": "审核 -&gt; 培训",
                            "p_id": 77,
                            "relation_ids": []
                        },
                        {
                            "id": 707,
                            "name": "兑换 -&gt; 培训学分",
                            "p_id": 77,
                            "relation_ids": []
                        },
                        {
                            "id": 708,
                            "name": "评分 -&gt; 培训",
                            "p_id": 77,
                            "relation_ids": []
                        },
                        {
                            "id": 202,
                            "name": "查看 -&gt; 首页",
                            "p_id": 77,
                            "relation_ids": []
                        },
                        {
                            "id": 203,
                            "name": "兑换 -&gt; 课程",
                            "p_id": 77,
                            "relation_ids": []
                        },
                        {
                            "id": 204,
                            "name": "查看 -&gt; 部门",
                            "p_id": 77,
                            "relation_ids": []
                        },
                        {
                            "id": 205,
                            "name": "查看 -&gt; 培训计划",
                            "p_id": 77,
                            "relation_ids": []
                        },
                        {
                            "id": 206,
                            "name": "查看 -&gt; 线上学院",
                            "p_id": 77,
                            "relation_ids": []
                        },
                        {
                            "id": 207,
                            "name": "添加 -&gt; 计划",
                            "p_id": 77,
                            "relation_ids": []
                        },
                        {
                            "id": 208,
                            "name": "更新 -&gt; 计划",
                            "p_id": 77,
                            "relation_ids": []
                        },
                        {
                            "id": 211,
                            "name": "评分 -&gt; 线上学院",
                            "p_id": 77,
                            "relation_ids": []
                        },
                        {
                            "id": 212,
                            "name": "检测 -&gt; 课程",
                            "p_id": 77,
                            "relation_ids": []
                        },
                        {
                            "id": 213,
                            "name": "开始 -&gt; 考试",
                            "p_id": 77,
                            "relation_ids": []
                        },
                        {
                            "id": 214,
                            "name": "兑换 -&gt; 课程学分",
                            "p_id": 77,
                            "relation_ids": []
                        },
                        {
                            "id": 215,
                            "name": "查看 -&gt; 学院",
                            "p_id": 77,
                            "relation_ids": []
                        },
                        {
                            "id": 216,
                            "name": "添加 -&gt; 课程",
                            "p_id": 77,
                            "relation_ids": []
                        },
                        {
                            "id": 217,
                            "name": "优化 -&gt; 课程",
                            "p_id": 77,
                            "relation_ids": []
                        },
                        {
                            "id": 219,
                            "name": "删除 -&gt; 课程",
                            "p_id": 77,
                            "relation_ids": []
                        },
                        {
                            "id": 220,
                            "name": "审核 -&gt; 课程",
                            "p_id": 77,
                            "relation_ids": []
                        }
                    ]
                },
                {
                    "id": 79,
                    "name": "学分系统",
                    "p_id": 21,
                    "relation_ids": [],
                    "child": [
                        {
                            "id": 235,
                            "name": "查看 -&gt; 学分系统",
                            "p_id": 79,
                            "relation_ids": []
                        },
                        {
                            "id": 236,
                            "name": "查看 -&gt; 学分详情",
                            "p_id": 79,
                            "relation_ids": []
                        }
                    ]
                },
                {
                    "id": 82,
                    "name": "学院信箱",
                    "p_id": 21,
                    "relation_ids": [],
                    "child": [
                        {
                            "id": 240,
                            "name": "查看 -&gt; 学院信箱",
                            "p_id": 82,
                            "relation_ids": []
                        },
                        {
                            "id": 241,
                            "name": "添加 -&gt; 学院信箱",
                            "p_id": 82,
                            "relation_ids": []
                        },
                        {
                            "id": 242,
                            "name": "删除 -&gt; 学院信箱",
                            "p_id": 82,
                            "relation_ids": []
                        }
                    ]
                },
                {
                    "id": 146,
                    "name": "考试系统",
                    "p_id": 21,
                    "relation_ids": [],
                    "child": [
                        {
                            "id": 149,
                            "name": "我的考试",
                            "p_id": 146,
                            "relation_ids": [],
                            "child": [
                                {
                                    "id": 256,
                                    "name": "评分",
                                    "p_id": 149,
                                    "relation_ids": []
                                },
                                {
                                    "id": 252,
                                    "name": "查看我的考试信息",
                                    "p_id": 149,
                                    "relation_ids": []
                                },
                                {
                                    "id": 253,
                                    "name": "答卷预览",
                                    "p_id": 149,
                                    "relation_ids": []
                                },
                                {
                                    "id": 254,
                                    "name": "交卷",
                                    "p_id": 149,
                                    "relation_ids": []
                                },
                                {
                                    "id": 255,
                                    "name": "评分预览",
                                    "p_id": 149,
                                    "relation_ids": []
                                }
                            ]
                        },
                        {
                            "id": 150,
                            "name": "创建试卷",
                            "p_id": 146,
                            "relation_ids": [],
                            "child": [
                                {
                                    "id": 257,
                                    "name": "考卷预览与历史考卷预览",
                                    "p_id": 150,
                                    "relation_ids": []
                                },
                                {
                                    "id": 258,
                                    "name": "查看考卷历史变更信息",
                                    "p_id": 150,
                                    "relation_ids": []
                                }
                            ]
                        },
                        {
                            "id": 151,
                            "name": "考试题库",
                            "p_id": 146,
                            "relation_ids": [],
                            "child": [
                                {
                                    "id": 259,
                                    "name": "新增\/更新试卷及试题信息",
                                    "p_id": 151,
                                    "relation_ids": []
                                },
                                {
                                    "id": 246,
                                    "name": "侧边栏数据源",
                                    "p_id": 151,
                                    "relation_ids": []
                                },
                                {
                                    "id": 249,
                                    "name": "查看对应ID的子级",
                                    "p_id": 151,
                                    "relation_ids": []
                                },
                                {
                                    "id": 250,
                                    "name": "发布考试",
                                    "p_id": 151,
                                    "relation_ids": []
                                }
                            ]
                        }
                    ]
                }
            ]
        },
        {
            "id": 19,
            "name": "制度流程",
            "p_id": 0,
            "relation_ids": [],
            "child": [
                {
                    "id": 84,
                    "name": "公司制度",
                    "p_id": 19,
                    "relation_ids": [],
                    "child": [
                        {
                            "id": 85,
                            "name": "企业文化",
                            "p_id": 84,
                            "relation_ids": [],
                            "child": [
                                {
                                    "id": 646,
                                    "name": "查看 -&gt; 公共制度信息",
                                    "p_id": 85,
                                    "relation_ids": []
                                },
                                {
                                    "id": 647,
                                    "name": "查看 -&gt; 单个公共制度信息",
                                    "p_id": 85,
                                    "relation_ids": []
                                }
                            ]
                        },
                        {
                            "id": 1175,
                            "name": "公共制度",
                            "p_id": 84,
                            "relation_ids": [],
                            "child": [
                                {
                                    "id": 1176,
                                    "name": "查看 -&gt; 公共制度信息",
                                    "p_id": 1175,
                                    "relation_ids": []
                                }
                            ]
                        }
                    ]
                },
                {
                    "id": 193,
                    "name": "部门制度\/存档",
                    "p_id": 19,
                    "relation_ids": [],
                    "child": [
                        {
                            "id": 505,
                            "name": "查看 -&gt; 内部制度信息",
                            "p_id": 193,
                            "relation_ids": []
                        },
                        {
                            "id": 507,
                            "name": "查看 -&gt; 单个制度信息",
                            "p_id": 193,
                            "relation_ids": []
                        },
                        {
                            "id": 510,
                            "name": "查看 -&gt; 制度历史记录信息",
                            "p_id": 193,
                            "relation_ids": []
                        }
                    ]
                },
                {
                    "id": 29,
                    "name": "我的流程",
                    "p_id": 19,
                    "relation_ids": [],
                    "child": [
                        {
                            "id": 30,
                            "name": "流程发起",
                            "p_id": 29,
                            "relation_ids": [],
                            "child": [
                                {
                                    "id": 1817,
                                    "name": "新增 -&gt; 发起开店申请",
                                    "p_id": 30,
                                    "relation_ids": []
                                },
                                {
                                    "id": 1818,
                                    "name": "新增 -&gt; 发起退店申请",
                                    "p_id": 30,
                                    "relation_ids": []
                                },
                                {
                                    "id": 1609,
                                    "name": "新增 -&gt; 发起离职交接申请",
                                    "p_id": 30,
                                    "relation_ids": []
                                },
                                {
                                    "id": 94,
                                    "name": "查看 -> 流程使用次数",
                                    "p_id": 30,
                                    "relation_ids": []
                                },
                                {
                                    "id": 95,
                                    "name": "更新 -> 设置审批流程版块编辑权限",
                                    "p_id": 30,
                                    "relation_ids": []
                                },
                                {
                                    "id": 96,
                                    "name": "更新 -> 设置审批流程的默认审批信息",
                                    "p_id": 30,
                                    "relation_ids": []
                                },
                                {
                                    "id": 97,
                                    "name": "更新 -> 设置审批流程的默认抄送信息",
                                    "p_id": 30,
                                    "relation_ids": []
                                },
                                {
                                    "id": 98,
                                    "name": "更新 -> 编辑流程说明",
                                    "p_id": 30,
                                    "relation_ids": []
                                },
                                {
                                    "id": 99,
                                    "name": "新增 -> 发起人力需求申请",
                                    "p_id": 30,
                                    "relation_ids": []
                                },
                                {
                                    "id": 100,
                                    "name": "新增 -> 发起人才推荐申请",
                                    "p_id": 30,
                                    "relation_ids": []
                                },
                                {
                                    "id": 101,
                                    "name": "新增 -> 发起人员转正申请",
                                    "p_id": 30,
                                    "relation_ids": []
                                },
                                {
                                    "id": 102,
                                    "name": "新增 -> 发起人员异动申请",
                                    "p_id": 30,
                                    "relation_ids": []
                                },
                                {
                                    "id": 870,
                                    "name": "新增 -&gt; 发起总经理直达",
                                    "p_id": 30,
                                    "relation_ids": []
                                },
                                {
                                    "id": 103,
                                    "name": "新增 -> 发起人员外训申请",
                                    "p_id": 30,
                                    "relation_ids": []
                                },
                                {
                                    "id": 104,
                                    "name": "新增 -> 发起人员请假申请",
                                    "p_id": 30,
                                    "relation_ids": []
                                },
                                {
                                    "id": 105,
                                    "name": "新增 -> 发起人员外出申请",
                                    "p_id": 30,
                                    "relation_ids": []
                                },
                                {
                                    "id": 106,
                                    "name": "新增 -> 发起人员出差申请",
                                    "p_id": 30,
                                    "relation_ids": []
                                },
                                {
                                    "id": 107,
                                    "name": "新增 -> 发起人员补卡申请",
                                    "p_id": 30,
                                    "relation_ids": []
                                },
                                {
                                    "id": 108,
                                    "name": "新增 -&gt; 发起人员离职申请",
                                    "p_id": 30,
                                    "relation_ids": []
                                },
                                {
                                    "id": 109,
                                    "name": "新增 -> 发起名片印刷申请",
                                    "p_id": 30,
                                    "relation_ids": []
                                },
                                {
                                    "id": 110,
                                    "name": "新增 -> 发起会议室使用申请",
                                    "p_id": 30,
                                    "relation_ids": []
                                },
                                {
                                    "id": 111,
                                    "name": "新增 -> 发起OA开发申请",
                                    "p_id": 30,
                                    "relation_ids": []
                                },
                                {
                                    "id": 112,
                                    "name": "新增 -> 发起资产采购申请",
                                    "p_id": 30,
                                    "relation_ids": []
                                },
                                {
                                    "id": 113,
                                    "name": "新增 -> 发起办公用品领用",
                                    "p_id": 30,
                                    "relation_ids": []
                                },
                                {
                                    "id": 114,
                                    "name": "新增 -> 发起产品入仓申请",
                                    "p_id": 30,
                                    "relation_ids": []
                                },
                                {
                                    "id": 115,
                                    "name": "新增 -> 发起产品内购申请",
                                    "p_id": 30,
                                    "relation_ids": []
                                },
                                {
                                    "id": 116,
                                    "name": "新增 -> 发起产品领用申请",
                                    "p_id": 30,
                                    "relation_ids": []
                                },
                                {
                                    "id": 117,
                                    "name": "新增 -> 发起产品借用申请",
                                    "p_id": 30,
                                    "relation_ids": []
                                },
                                {
                                    "id": 118,
                                    "name": "新增 -> 发起资产报修\/报废申请",
                                    "p_id": 30,
                                    "relation_ids": []
                                },
                                {
                                    "id": 119,
                                    "name": "新增 -> 发起用印申请",
                                    "p_id": 30,
                                    "relation_ids": []
                                },
                                {
                                    "id": 120,
                                    "name": "新增 -> 发起付款申请",
                                    "p_id": 30,
                                    "relation_ids": []
                                },
                                {
                                    "id": 121,
                                    "name": "新增 -> 发起借款申请",
                                    "p_id": 30,
                                    "relation_ids": []
                                },
                                {
                                    "id": 122,
                                    "name": "新增 -> 发起费用报销申请",
                                    "p_id": 30,
                                    "relation_ids": []
                                },
                                {
                                    "id": 123,
                                    "name": "新增 -> 发起提案申请",
                                    "p_id": 30,
                                    "relation_ids": []
                                },
                                {
                                    "id": 124,
                                    "name": "新增 -> 发起项目异动",
                                    "p_id": 30,
                                    "relation_ids": []
                                },
                                {
                                    "id": 125,
                                    "name": "新增 -> 发起项目异常审批",
                                    "p_id": 30,
                                    "relation_ids": []
                                },
                                {
                                    "id": 899,
                                    "name": "发起6.0提案申请",
                                    "p_id": 30,
                                    "relation_ids": []
                                },
                                {
                                    "id": 1695,
                                    "name": "新增 -&gt; 发起人员团建申请",
                                    "p_id": 30,
                                    "relation_ids": []
                                },
                                {
                                    "id": 1216,
                                    "name": "新增 -&gt; 发起货品异常出库申请",
                                    "p_id": 30,
                                    "relation_ids": []
                                },
                                {
                                    "id": 1227,
                                    "name": "新增 -&gt; 发起产品检测申请",
                                    "p_id": 30,
                                    "relation_ids": []
                                }
                            ]
                        },
                        {
                            "id": 83,
                            "name": "流程审核",
                            "p_id": 29,
                            "relation_ids": [],
                            "child": [
                                {
                                    "id": 1329,
                                    "name": "查看 -&gt; 我待执行的流程",
                                    "p_id": 83,
                                    "relation_ids": []
                                },
                                {
                                    "id": 1330,
                                    "name": "查看 -&gt; 我已执行的流程",
                                    "p_id": 83,
                                    "relation_ids": []
                                },
                                {
                                    "id": 1331,
                                    "name": "转交 -&gt; 流程执行转交",
                                    "p_id": 83,
                                    "relation_ids": []
                                },
                                {
                                    "id": 1332,
                                    "name": "评论 -&gt; 流程评论",
                                    "p_id": 83,
                                    "relation_ids": []
                                },
                                {
                                    "id": 126,
                                    "name": "查看 -> 我待办的流程",
                                    "p_id": 83,
                                    "relation_ids": []
                                },
                                {
                                    "id": 127,
                                    "name": "查看 -> 我发起的流程",
                                    "p_id": 83,
                                    "relation_ids": []
                                },
                                {
                                    "id": 128,
                                    "name": "查看 -> 我已办的流程",
                                    "p_id": 83,
                                    "relation_ids": []
                                },
                                {
                                    "id": 129,
                                    "name": "查看 -> 抄送我的流程",
                                    "p_id": 83,
                                    "relation_ids": []
                                },
                                {
                                    "id": 130,
                                    "name": "查看 -> 单个流程信息",
                                    "p_id": 83,
                                    "relation_ids": []
                                },
                                {
                                    "id": 131,
                                    "name": "删除 -> 撤销流程",
                                    "p_id": 83,
                                    "relation_ids": []
                                },
                                {
                                    "id": 132,
                                    "name": "更新 -> 审核流程",
                                    "p_id": 83,
                                    "relation_ids": []
                                }
                            ]
                        }
                    ]
                },
                {
                    "id": 2269,
                    "name": "审批流程",
                    "p_id": 19,
                    "relation_ids": [],
                    "child": [
                        {
                            "id": 2270,
                            "name": "流程发起",
                            "p_id": 2269,
                            "relation_ids": [],
                            "child": [
                                {
                                    "id": 2273,
                                    "name": "发起 -&gt; 产品内购申请",
                                    "p_id": 2270,
                                    "relation_ids": []
                                }
                            ]
                        },
                        {
                            "id": 2271,
                            "name": "流程列表",
                            "p_id": 2269,
                            "relation_ids": [],
                            "child": [
                                {
                                    "id": 2274,
                                    "name": "查看 -&gt; 流程列表信息",
                                    "p_id": 2271,
                                    "relation_ids": []
                                },
                                {
                                    "id": 2275,
                                    "name": "查看 -&gt; 流程详情",
                                    "p_id": 2271,
                                    "relation_ids": []
                                },
                                {
                                    "id": 2276,
                                    "name": "发布 -&gt; 流程评论",
                                    "p_id": 2271,
                                    "relation_ids": []
                                },
                                {
                                    "id": 2277,
                                    "name": "撤销 -&gt; 流程",
                                    "p_id": 2271,
                                    "relation_ids": []
                                },
                                {
                                    "id": 2278,
                                    "name": "转交 -&gt; 流程",
                                    "p_id": 2271,
                                    "relation_ids": []
                                },
                                {
                                    "id": 2279,
                                    "name": "审批 -&gt; 流程",
                                    "p_id": 2271,
                                    "relation_ids": []
                                },
                                {
                                    "id": 2281,
                                    "name": "导出 -&gt; 新品内购申请产品清单",
                                    "p_id": 2271,
                                    "relation_ids": []
                                },
                                {
                                    "id": 2286,
                                    "name": "执行 -&gt; 流程",
                                    "p_id": 2271,
                                    "relation_ids": []
                                }
                            ]
                        }
                    ]
                },
                {
                    "id": 65,
                    "name": "OA积分",
                    "p_id": 19,
                    "relation_ids": [],
                    "child": [
                        {
                            "id": 90,
                            "name": "我的积分",
                            "p_id": 65,
                            "relation_ids": [],
                            "child": [
                                {
                                    "id": 601,
                                    "name": "查看 -&gt; 我的积分",
                                    "p_id": 90,
                                    "relation_ids": []
                                },
                                {
                                    "id": 602,
                                    "name": "添加 -&gt; 申诉",
                                    "p_id": 90,
                                    "relation_ids": []
                                }
                            ]
                        },
                        {
                            "id": 92,
                            "name": "积分申诉",
                            "p_id": 65,
                            "relation_ids": [],
                            "child": [
                                {
                                    "id": 609,
                                    "name": "查看 -&gt; 申诉",
                                    "p_id": 92,
                                    "relation_ids": []
                                },
                                {
                                    "id": 610,
                                    "name": "审核 -&gt; 申诉",
                                    "p_id": 92,
                                    "relation_ids": []
                                }
                            ]
                        }
                    ]
                },
                {
                    "id": 31,
                    "name": "我的意见",
                    "p_id": 19,
                    "relation_ids": [],
                    "child": [
                        {
                            "id": 32,
                            "name": "提出意见",
                            "p_id": 31,
                            "relation_ids": [],
                            "child": [
                                {
                                    "id": 587,
                                    "name": "查看 -&gt; 我的意见",
                                    "p_id": 32,
                                    "relation_ids": []
                                },
                                {
                                    "id": 588,
                                    "name": "查看 -&gt; 图片\/附件",
                                    "p_id": 32,
                                    "relation_ids": []
                                },
                                {
                                    "id": 589,
                                    "name": "添加 -&gt; 意见",
                                    "p_id": 32,
                                    "relation_ids": []
                                },
                                {
                                    "id": 590,
                                    "name": "删除 -&gt; 意见",
                                    "p_id": 32,
                                    "relation_ids": []
                                }
                            ]
                        }
                    ]
                }
            ]
        },
        {
            "id": 14,
            "name": "管理服务部",
            "p_id": 0,
            "relation_ids": [],
            "child": [
                {
                    "id": 42,
                    "name": "人才管理",
                    "p_id": 14,
                    "relation_ids": [],
                    "child": [
                        {
                            "id": 1728,
                            "name": "人才发展",
                            "p_id": 42,
                            "relation_ids": [],
                            "child": [
                                {
                                    "id": 1730,
                                    "name": "查看 -&gt; 职级职称列表",
                                    "p_id": 1728,
                                    "relation_ids": []
                                },
                                {
                                    "id": 1734,
                                    "name": "查看 -&gt; 岗位职级列表",
                                    "p_id": 1728,
                                    "relation_ids": []
                                }
                            ]
                        }
                    ]
                }
            ]
        },
        {
            "id": 1006,
            "name": "账号资讯",
            "p_id": 0,
            "relation_ids": [],
            "child": [
                {
                    "id": 1007,
                    "name": "账号库集",
                    "p_id": 1006,
                    "relation_ids": [],
                    "child": [
                        {
                            "id": 1008,
                            "name": "手机账号",
                            "p_id": 1007,
                            "relation_ids": [],
                            "child": [
                                {
                                    "id": 1934,
                                    "name": "部门SIM卡-撤销 -&gt; 转移",
                                    "p_id": 1008,
                                    "relation_ids": []
                                },
                                {
                                    "id": 1935,
                                    "name": "部门手机-撤销 -&gt; 转移",
                                    "p_id": 1008,
                                    "relation_ids": []
                                },
                                {
                                    "id": 1024,
                                    "name": "部门SIM卡-部门SIM卡管理列表",
                                    "p_id": 1008,
                                    "relation_ids": []
                                },
                                {
                                    "id": 1025,
                                    "name": "部门SIM卡-获取手机编码",
                                    "p_id": 1008,
                                    "relation_ids": []
                                },
                                {
                                    "id": 1028,
                                    "name": "部门SIM卡-重新分配 -&gt; 部门SIM卡管理",
                                    "p_id": 1008,
                                    "relation_ids": []
                                },
                                {
                                    "id": 1027,
                                    "name": "部门SIM卡-重新分配 -&gt; 获取部门内人员",
                                    "p_id": 1008,
                                    "relation_ids": []
                                },
                                {
                                    "id": 1026,
                                    "name": "公司SIM卡-更新手机编码",
                                    "p_id": 1008,
                                    "relation_ids": []
                                },
                                {
                                    "id": 1029,
                                    "name": "部门SIM卡-回收 -&gt; 部门SIM卡管理",
                                    "p_id": 1008,
                                    "relation_ids": []
                                },
                                {
                                    "id": 1774,
                                    "name": "部门SIM卡-发起 -&gt; 转移",
                                    "p_id": 1008,
                                    "relation_ids": []
                                },
                                {
                                    "id": 1775,
                                    "name": "部门SIM卡-接收 -&gt; 转移",
                                    "p_id": 1008,
                                    "relation_ids": []
                                },
                                {
                                    "id": 1776,
                                    "name": "部门SIM卡-查看 -&gt; 转移历史",
                                    "p_id": 1008,
                                    "relation_ids": []
                                },
                                {
                                    "id": 1768,
                                    "name": "部门手机-手机列表",
                                    "p_id": 1008,
                                    "relation_ids": []
                                },
                                {
                                    "id": 1772,
                                    "name": "部门手机-分配 -&gt; 手机持有人",
                                    "p_id": 1008,
                                    "relation_ids": []
                                },
                                {
                                    "id": 1773,
                                    "name": "部门手机-回收 -&gt; 手机",
                                    "p_id": 1008,
                                    "relation_ids": []
                                },
                                {
                                    "id": 1769,
                                    "name": "部门手机-发起 -&gt; 转移",
                                    "p_id": 1008,
                                    "relation_ids": []
                                },
                                {
                                    "id": 1770,
                                    "name": "部门手机-接收 -&gt; 转移",
                                    "p_id": 1008,
                                    "relation_ids": []
                                },
                                {
                                    "id": 1771,
                                    "name": "部门手机-查看 -&gt; 转移历史",
                                    "p_id": 1008,
                                    "relation_ids": []
                                }
                            ]
                        }
                    ]
                }
            ]
        }
    ],
    code: 200,
    msg: "sucess",
  }),
  'POST /api/login': (req, res) => {
    const { username,password } = req.body;

    let resphone = {};

    if(username == 'super' && password == 'qjw'){
      resphone = {
        data: {token:'abcdefghijklmnopqrst'},
        code: 200,
        msg: "sucess",
      };
    }else{
      resphone = {
        code: 400,
        msg: "账号或密码错误，请重新输入",
      };
    }
    res.setHeader('Access-Control-Allow-Origin', '*');
    res.status(200).json(
      Mock.mock(resphone)
    );
 
  },
};